
import 'package:audioplayers/audioplayers.dart';
import 'package:flutter/material.dart';

class Store with ChangeNotifier {
  final AudioPlayer _audioPlayer = AudioPlayer();
  dynamic _current_music = null;
  List<dynamic> _musicList = [];
  List<dynamic> _playList = [];
  List<dynamic> get playList =>_playList;
  List<dynamic> get musicList => _musicList;
  AudioPlayer get audioplayer => _audioPlayer;
  dynamic get currentMusic => _current_music;
  set currentMusic(dynamic music){
    _current_music = music;
    notifyListeners();
  }

  set musicList(List<dynamic> list){
    _musicList = list;
    notifyListeners();
  }

  set playList(List<dynamic> list){
    _playList = list;
    notifyListeners();
  }
}